# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/shredder/Dropbox/Magnetometer/QtMagnet/main.ui'
#
# Created: Sun Jun 14 22:08:59 2009
#      by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_mainWin(object):
    def setupUi(self, mainWin):
        mainWin.setObjectName("mainWin")
        mainWin.setWindowModality(QtCore.Qt.NonModal)
        mainWin.resize(1174, 767)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(mainWin.sizePolicy().hasHeightForWidth())
        mainWin.setSizePolicy(sizePolicy)
        mainWin.setMaximumSize(QtCore.QSize(1280, 768))
        mainWin.setDockNestingEnabled(False)
        mainWin.setDockOptions(QtGui.QMainWindow.AllowTabbedDocks|QtGui.QMainWindow.AnimatedDocks)
        mainWin.setUnifiedTitleAndToolBarOnMac(False)
        self.centralwidget = QtGui.QWidget(mainWin)
        self.centralwidget.setFocusPolicy(QtCore.Qt.NoFocus)
        self.centralwidget.setObjectName("centralwidget")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 1171, 741))
        self.tabWidget.setObjectName("tabWidget")
        self.Tab_sub = QtGui.QWidget()
        self.Tab_sub.setObjectName("Tab_sub")
        self.groupTab = QtGui.QGroupBox(self.Tab_sub)
        self.groupTab.setGeometry(QtCore.QRect(0, 200, 481, 481))
        self.groupTab.setObjectName("groupTab")
        self.horizontalLayoutWidget = QtGui.QWidget(self.groupTab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 30, 461, 431))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.tabMag = QtGui.QTableWidget(self.horizontalLayoutWidget)
        self.tabMag.setAlternatingRowColors(False)
        self.tabMag.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.tabMag.setObjectName("tabMag")
        self.tabMag.setColumnCount(0)
        self.tabMag.setRowCount(0)
        self.horizontalLayout.addWidget(self.tabMag)
        self.groupBox_2 = QtGui.QGroupBox(self.Tab_sub)
        self.groupBox_2.setGeometry(QtCore.QRect(490, 0, 671, 681))
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayoutWidget_2 = QtGui.QWidget(self.groupBox_2)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10, 20, 521, 651))
        self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.qPlot_3 = QwtPlot(self.gridLayoutWidget_2)
        self.qPlot_3.setObjectName("qPlot_3")
        self.gridLayout_2.addWidget(self.qPlot_3, 2, 0, 1, 1)
        self.qPlot_4 = QwtPlot(self.gridLayoutWidget_2)
        self.qPlot_4.setObjectName("qPlot_4")
        self.gridLayout_2.addWidget(self.qPlot_4, 3, 0, 1, 1)
        self.qPlot = QwtPlot(self.gridLayoutWidget_2)
        self.qPlot.setObjectName("qPlot")
        self.gridLayout_2.addWidget(self.qPlot, 0, 0, 1, 1)
        self.qPlot_2 = QwtPlot(self.gridLayoutWidget_2)
        self.qPlot_2.setObjectName("qPlot_2")
        self.gridLayout_2.addWidget(self.qPlot_2, 1, 0, 1, 1)
        self.tabWidget_2 = QtGui.QTabWidget(self.Tab_sub)
        self.tabWidget_2.setGeometry(QtCore.QRect(0, 0, 481, 201))
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.groupBox = QtGui.QGroupBox(self.tab)
        self.groupBox.setGeometry(QtCore.QRect(0, 0, 471, 171))
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayoutWidget = QtGui.QWidget(self.groupBox)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 10, 451, 151))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setObjectName("gridLayout")
        self.lineK3 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK3.setObjectName("lineK3")
        self.gridLayout.addWidget(self.lineK3, 2, 0, 1, 1)
        self.lineK4 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK4.setObjectName("lineK4")
        self.gridLayout.addWidget(self.lineK4, 3, 0, 1, 1)
        self.lineK2 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK2.setObjectName("lineK2")
        self.gridLayout.addWidget(self.lineK2, 1, 0, 1, 1)
        self.lineK1 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK1.setObjectName("lineK1")
        self.gridLayout.addWidget(self.lineK1, 0, 0, 1, 1)
        self.btnK1 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK1.setObjectName("btnK1")
        self.gridLayout.addWidget(self.btnK1, 0, 1, 1, 1)
        self.btnK2 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK2.setObjectName("btnK2")
        self.gridLayout.addWidget(self.btnK2, 1, 1, 1, 1)
        self.btnK3 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK3.setObjectName("btnK3")
        self.gridLayout.addWidget(self.btnK3, 2, 1, 1, 1)
        self.btnK4 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK4.setObjectName("btnK4")
        self.gridLayout.addWidget(self.btnK4, 3, 1, 1, 1)
        self.tabWidget_2.addTab(self.tab, "")
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayoutWidget_4 = QtGui.QWidget(self.tab_3)
        self.gridLayoutWidget_4.setGeometry(QtCore.QRect(0, 0, 461, 161))
        self.gridLayoutWidget_4.setObjectName("gridLayoutWidget_4")
        self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_4)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_3 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_3.setObjectName("label_3")
        self.gridLayout_4.addWidget(self.label_3, 0, 1, 1, 1)
        self.lineAdres = QtGui.QLineEdit(self.gridLayoutWidget_4)
        self.lineAdres.setObjectName("lineAdres")
        self.gridLayout_4.addWidget(self.lineAdres, 1, 1, 1, 1)
        self.btn_vyberAdres = QtGui.QPushButton(self.gridLayoutWidget_4)
        self.btn_vyberAdres.setObjectName("btn_vyberAdres")
        self.gridLayout_4.addWidget(self.btn_vyberAdres, 0, 2, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_5 = QtGui.QLabel(self.gridLayoutWidget_4)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_5.addWidget(self.label_5)
        self.uloz_k1 = QtGui.QCheckBox(self.gridLayoutWidget_4)
        self.uloz_k1.setObjectName("uloz_k1")
        self.horizontalLayout_5.addWidget(self.uloz_k1)
        self.uloz_k2 = QtGui.QCheckBox(self.gridLayoutWidget_4)
        self.uloz_k2.setObjectName("uloz_k2")
        self.horizontalLayout_5.addWidget(self.uloz_k2)
        self.uloz_k3 = QtGui.QCheckBox(self.gridLayoutWidget_4)
        self.uloz_k3.setObjectName("uloz_k3")
        self.horizontalLayout_5.addWidget(self.uloz_k3)
        self.uloz_k4 = QtGui.QCheckBox(self.gridLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.uloz_k4.sizePolicy().hasHeightForWidth())
        self.uloz_k4.setSizePolicy(sizePolicy)
        self.uloz_k4.setObjectName("uloz_k4")
        self.horizontalLayout_5.addWidget(self.uloz_k4)
        self.gridLayout_4.addLayout(self.horizontalLayout_5, 2, 1, 1, 1)
        self.tabWidget_2.addTab(self.tab_3, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridLayoutWidget_3 = QtGui.QWidget(self.tab_2)
        self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 0, 461, 172))
        self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
        self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget_3)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.btnStartMer = QtGui.QPushButton(self.gridLayoutWidget_3)
        self.btnStartMer.setObjectName("btnStartMer")
        self.horizontalLayout_3.addWidget(self.btnStartMer)
        self.btnStopMer = QtGui.QPushButton(self.gridLayoutWidget_3)
        self.btnStopMer.setObjectName("btnStopMer")
        self.horizontalLayout_3.addWidget(self.btnStopMer)
        self.gridLayout_3.addLayout(self.horizontalLayout_3, 3, 0, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_4 = QtGui.QLabel(self.gridLayoutWidget_3)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_4.addWidget(self.label_4)
        self.comboVzorky = QtGui.QComboBox(self.gridLayoutWidget_3)
        self.comboVzorky.setObjectName("comboVzorky")
        self.comboVzorky.addItem(QtCore.QString())
        self.comboVzorky.addItem(QtCore.QString())
        self.comboVzorky.addItem(QtCore.QString())
        self.comboVzorky.addItem(QtCore.QString())
        self.horizontalLayout_4.addWidget(self.comboVzorky)
        self.gridLayout_3.addLayout(self.horizontalLayout_4, 2, 0, 1, 1)
        self.label = QtGui.QLabel(self.gridLayoutWidget_3)
        self.label.setObjectName("label")
        self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
        self.txtUSB = QtGui.QTextEdit(self.gridLayoutWidget_3)
        self.txtUSB.setTextInteractionFlags(QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
        self.txtUSB.setObjectName("txtUSB")
        self.gridLayout_3.addWidget(self.txtUSB, 1, 0, 1, 1)
        self.barPrepocet = QtGui.QProgressBar(self.gridLayoutWidget_3)
        self.barPrepocet.setProperty("value", QtCore.QVariant(24))
        self.barPrepocet.setObjectName("barPrepocet")
        self.gridLayout_3.addWidget(self.barPrepocet, 4, 0, 1, 1)
        self.tabWidget_2.addTab(self.tab_2, "")
        self.tabWidget.addTab(self.Tab_sub, "")
        self.Tab_an = QtGui.QWidget()
        self.Tab_an.setObjectName("Tab_an")
        self.qPlot_fft = QwtPlot(self.Tab_an)
        self.qPlot_fft.setGeometry(QtCore.QRect(200, 0, 501, 171))
        self.qPlot_fft.setObjectName("qPlot_fft")
        self.qPlot_fft_2 = QwtPlot(self.Tab_an)
        self.qPlot_fft_2.setGeometry(QtCore.QRect(200, 180, 501, 171))
        self.qPlot_fft_2.setObjectName("qPlot_fft_2")
        self.qPlot_fft_3 = QwtPlot(self.Tab_an)
        self.qPlot_fft_3.setGeometry(QtCore.QRect(200, 360, 501, 171))
        self.qPlot_fft_3.setObjectName("qPlot_fft_3")
        self.qPlot_fft_4 = QwtPlot(self.Tab_an)
        self.qPlot_fft_4.setGeometry(QtCore.QRect(200, 540, 501, 171))
        self.qPlot_fft_4.setObjectName("qPlot_fft_4")
        self.tabWidget.addTab(self.Tab_an, "")
        self.tab_algo = QtGui.QWidget()
        self.tab_algo.setObjectName("tab_algo")
        self.plotWidget = MPL_Widget(self.tab_algo)
        self.plotWidget.setGeometry(QtCore.QRect(342, 10, 381, 241))
        self.plotWidget.setObjectName("plotWidget")
        self.pushButton = QtGui.QPushButton(self.tab_algo)
        self.pushButton.setGeometry(QtCore.QRect(30, 30, 75, 24))
        self.pushButton.setObjectName("pushButton")
        self.tabWidget.addTab(self.tab_algo, "")
        mainWin.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(mainWin)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1174, 24))
        self.menubar.setObjectName("menubar")
        self.menuS_bor = QtGui.QMenu(self.menubar)
        self.menuS_bor.setObjectName("menuS_bor")
        self.menuO_aplik_cii = QtGui.QMenu(self.menubar)
        self.menuO_aplik_cii.setObjectName("menuO_aplik_cii")
        mainWin.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(mainWin)
        self.statusbar.setObjectName("statusbar")
        mainWin.setStatusBar(self.statusbar)
        self.actionOtvori = QtGui.QAction(mainWin)
        self.actionOtvori.setObjectName("actionOtvori")
        self.actionKoniec = QtGui.QAction(mainWin)
        self.actionKoniec.setObjectName("actionKoniec")
        self.actionUlo = QtGui.QAction(mainWin)
        self.actionUlo.setObjectName("actionUlo")
        self.menuS_bor.addAction(self.actionOtvori)
        self.menuS_bor.addAction(self.actionUlo)
        self.menuS_bor.addSeparator()
        self.menuS_bor.addAction(self.actionKoniec)
        self.menubar.addAction(self.menuS_bor.menuAction())
        self.menubar.addAction(self.menuO_aplik_cii.menuAction())

        self.retranslateUi(mainWin)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        self.comboVzorky.setCurrentIndex(2)
        QtCore.QObject.connect(self.actionKoniec, QtCore.SIGNAL("activated()"), mainWin.close)
        QtCore.QMetaObject.connectSlotsByName(mainWin)

    def retranslateUi(self, mainWin):
        mainWin.setWindowTitle(QtGui.QApplication.translate("mainWin", "Magnetometer", None, QtGui.QApplication.UnicodeUTF8))
        self.groupTab.setTitle(QtGui.QApplication.translate("mainWin", "Tabuľka", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("mainWin", "Priebehy", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK1.setText(QtGui.QApplication.translate("mainWin", "Otvor K1", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK2.setText(QtGui.QApplication.translate("mainWin", "Otvor K2", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK3.setText(QtGui.QApplication.translate("mainWin", "Otvor K3", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK4.setText(QtGui.QApplication.translate("mainWin", "Otvor K4", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab), QtGui.QApplication.translate("mainWin", "Načítanie zo súboru", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("mainWin", "Výber adresára pre uloženie:", None, QtGui.QApplication.UnicodeUTF8))
        self.btn_vyberAdres.setText(QtGui.QApplication.translate("mainWin", "Vyber", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("mainWin", "Vyber kanalov na ulozenie", None, QtGui.QApplication.UnicodeUTF8))
        self.uloz_k1.setText(QtGui.QApplication.translate("mainWin", "K1", None, QtGui.QApplication.UnicodeUTF8))
        self.uloz_k2.setText(QtGui.QApplication.translate("mainWin", "K2", None, QtGui.QApplication.UnicodeUTF8))
        self.uloz_k3.setText(QtGui.QApplication.translate("mainWin", "K3", None, QtGui.QApplication.UnicodeUTF8))
        self.uloz_k4.setText(QtGui.QApplication.translate("mainWin", "K4", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_3), QtGui.QApplication.translate("mainWin", "Uloženie do súboru", None, QtGui.QApplication.UnicodeUTF8))
        self.btnStartMer.setText(QtGui.QApplication.translate("mainWin", "Start", None, QtGui.QApplication.UnicodeUTF8))
        self.btnStopMer.setText(QtGui.QApplication.translate("mainWin", "Stop", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("mainWin", "Pocet Vzoriek:", None, QtGui.QApplication.UnicodeUTF8))
        self.comboVzorky.setItemText(0, QtGui.QApplication.translate("mainWin", "100", None, QtGui.QApplication.UnicodeUTF8))
        self.comboVzorky.setItemText(1, QtGui.QApplication.translate("mainWin", "500", None, QtGui.QApplication.UnicodeUTF8))
        self.comboVzorky.setItemText(2, QtGui.QApplication.translate("mainWin", "1000", None, QtGui.QApplication.UnicodeUTF8))
        self.comboVzorky.setItemText(3, QtGui.QApplication.translate("mainWin", "2000", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("mainWin", "Pripojené zariadenie:", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_2), QtGui.QApplication.translate("mainWin", "Načítanie z USB", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Tab_sub), QtGui.QApplication.translate("mainWin", "Nastavenie", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Tab_an), QtGui.QApplication.translate("mainWin", "Analýza signálov", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("mainWin", "Start", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_algo), QtGui.QApplication.translate("mainWin", "Algoritmus", None, QtGui.QApplication.UnicodeUTF8))
        self.menuS_bor.setTitle(QtGui.QApplication.translate("mainWin", "Súbor", None, QtGui.QApplication.UnicodeUTF8))
        self.menuO_aplik_cii.setTitle(QtGui.QApplication.translate("mainWin", "O aplikácii", None, QtGui.QApplication.UnicodeUTF8))
        self.actionOtvori.setText(QtGui.QApplication.translate("mainWin", "Otvoriť", None, QtGui.QApplication.UnicodeUTF8))
        self.actionKoniec.setText(QtGui.QApplication.translate("mainWin", "Koniec", None, QtGui.QApplication.UnicodeUTF8))
        self.actionUlo.setText(QtGui.QApplication.translate("mainWin", "Ulož", None, QtGui.QApplication.UnicodeUTF8))

from mpl_pyqt4_widget import MPL_Widget
from PyQt4.Qwt5 import QwtPlot

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    mainWin = QtGui.QMainWindow()
    ui = Ui_mainWin()
    ui.setupUi(mainWin)
    mainWin.show()
    sys.exit(app.exec_())

